{literal}
<h2>Annotation</h2>
@orm plugin DomArDateTime($DEFAULT_DATE)<br>
<br>
$DEFAULT_DATE can be anything acceptable to PHP strtotime!<br>
NB! DomArDateTime has all the functions DomArDate has.<br>

<h2>Methods</h2>
Useful image methods:<br>
<ul>
	<li> datetime( $format ) - formats datetime. See PHP date function.</li>
	<li> minute() - if datetime is in future.</li>
	<li> second() - if datetime is in past </li>
	<li> hour() - if datetime is today </li>
</ul>
<h2> Sample usage </h2>
<pre class="code">
&lt;?php
class MySampleClass extends DomArObject {
	/**
	* @orm plugin DomArDateTime(now)
	*/
	protected $date
}

$sample = new MySampleClass();
echo $sample->date->datetime().'&lt;br&gt;'; // prints todays date year-month-day hour:minute:second
echo $sample->date->datetime('d-m-Y H:i:s').'&lt;br&gt;'; // prints todays date day-month-year hour:minute:second
echo ($sample->date->inFuture() ? 'In future' : 'Today or past').'&lt;br&gt;';
echo $sample->date->year().'&lt;br&gt;'; // prints four digit year.

?&gt;
</pre>

{/literal}